package model

import "gorm.io/gorm"

// 用户表
type User struct {
	gorm.Model
	Username string
	Password string
}

// 用户角色表
type UserRole struct {
	gorm.Model
	Uid int
	Rid int
}

// 角色表
type Role struct {
	gorm.Model
	RoleName string
}

// 角色权限表
type RoleNode struct {
	gorm.Model
	Rid int
	Nid int
}

// 权限表
type Node struct {
	gorm.Model
	NodeName string
}

// 车辆表
type Car struct {
	gorm.Model
	CarName string
	CarCode string
	CarNo   string
}

// 车辆订单表
type CarOrder struct {
	gorm.Model
	OrderCode string
	OrderGood string
	OrderForm string
	OrderTo   string
	Cid       int
}

// 详细订单
type CarOrderList struct {
	OrderId   int
	CarName   string
	CarCode   string
	CarNo     string
	OrderCode string
	OrderGood string
	OrderForm string
	OrderTo   string
}
